import Mock from '../mock-class.js'

Mock.mock(Mock.baseURL + '/unlockscreen', 'post', function (options) {
	const { password } = JSON.parse(options.body)
	if (password == '123456') {
		return {
			code: 200,
			data: null,
			message: '解锁成功'
		}
	} else {
		return {
			code: 400,
			data: null,
			message: '密码错误'
		}
	}
})